package com.ym.medical.dao;

import com.ym.medical.domain.entity.SubjectReplyEntity;
import com.ym.medical.domain.vo.SubjectReplyListMobileVO;
import com.ym.medical.domain.vo.SubjectReplyListPcVO;
import com.ym.medical.domain.param.SubjectReplyQueryParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;

/**
 * 主题回复Dao接口
 *
 * @author ym
 * @date 2020-08-24
 */
@Repository
public interface SubjectReplyDao extends Mapper<SubjectReplyEntity>{

    /**
     * 查询主题回复列表,PC专用不要轻易混用更改
     *
     * @param queryParam  主题回复查询参数
     * @return 主题回复集合
     */
    List<SubjectReplyListPcVO> selectListPC(SubjectReplyQueryParam queryParam);

    /**
     * 主题答复
     * @param id
     * @param loginId
     * @return
     */
    List<SubjectReplyListMobileVO> getSubjectReplyDetail(@Param("subjectId") Long id,@Param("loginId") Long loginId);
}
